Add EnableDescriptionMarkdown to WithCustomInput example#393
Add EnableDescriptionMarkdown to WithCustomInput example#393
Conversation
Co-authored-by: maddymontaquila <12660687+maddymontaquila@users.noreply.github.com>
|
do we need both |
…m parameter Co-authored-by: maddymontaquila <12660687+maddymontaquila@users.noreply.github.com>
Good catch! I investigated the Aspire source code and you're right that it seems redundant at first glance, but both ARE needed due to how Here's what happens:
I've updated the example to use See commit 78e603e for the improved example. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Fix WithCustomInput example missing EnableDescriptionMarkdown
WithCustomInputexample in external-parameters.mdx to includeEnableDescriptionMarkdown = trueEnableDescriptionMarkdownEnableDescriptionMarkdownfrom parameter instead of hardcodingSummary of Changes
This PR fixes the documentation for
WithCustomInputto properly demonstrate markdown rendering in parameter dialogs.What was wrong:
WithDescription(enableMarkdown: true)but didn't setEnableDescriptionMarkdownon theInteractionInputobjectenableMarkdown: trueonly sets the property on the ParameterResource, but WithCustomInput creates a new InteractionInput objectWhat was fixed:
EnableDescriptionMarkdown = p.EnableDescriptionMarkdownfrom the parameter (line 154)WithDescription(enableMarkdown: true)sets the property on the parameter resourceWithCustomInput, you must explicitly copy this property to your customInteractionInputobjecttrueHow it works:
WithDescription(enableMarkdown: true)setsEnableDescriptionMarkdownon theParameterResourceWithCustomInput, the framework automatically copies this to theInteractionInputWithCustomInput, you create your ownInteractionInput, so you must copy:EnableDescriptionMarkdown = p.EnableDescriptionMarkdownTesting:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.